|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.boaframework.OMStrategy
negotiator.boaframework.omstrategy.NullStrategy
public class NullStrategy
Baseline strategy which simply returns a random bid from the given array of bids. Basically, the opponent model is ignored.
| Field Summary |
|---|
| Fields inherited from class negotiator.boaframework.OMStrategy |
|---|
model, negotiationSession |
| Constructor Summary | |
|---|---|
NullStrategy()
Empty constructor used for reflexion. |
|
NullStrategy(NegotiationSession negotiationSession)
Normal constructor used to initialize the NullStrategy opponent model strategy. |
|
| Method Summary | |
|---|---|
boolean |
canUpdateOM()
Returns true if the opponent model be updated, which is in this case if the time is lower than the given threshold. |
BidDetails |
getBid(java.util.List<BidDetails> allBids)
Returns a random bid from the give array of similarly preferred bids. |
void |
init(NegotiationSession negotiationSession,
OpponentModel model,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initialize method to be used by the BOA framework. |
| Methods inherited from class negotiator.boaframework.OMStrategy |
|---|
getBid, getBid, init, setOpponentModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullStrategy()
public NullStrategy(NegotiationSession negotiationSession)
negotiationSession - symbolizing the negotiation state.| Method Detail |
|---|
public void init(NegotiationSession negotiationSession,
OpponentModel model,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
throws java.lang.Exception
OMStrategy
init in class OMStrategynegotiationSession - state of the negotiation.model - opponent model to which the opponent model strategy applies.parameters - for the opponent model strategy, for example the maximum update time.
java.lang.Exception - thrown when initializing the opponent model strategy fails.public BidDetails getBid(java.util.List<BidDetails> allBids)
getBid in class OMStrategyallBids - list of similarly preferred bids.
public boolean canUpdateOM()
canUpdateOM in class OMStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||